<template>
  <div>
    <h2>欢迎光临红浪漫洗浴中心</h2>
    <div>随机选择一位美女为你服务</div>
    <img :src="result.message" alt="">
  </div>
</template>

<script lang="ts">
import { reactive, toRefs, ref, watch} from 'vue';
import useURLAxios from "../hooks/useURLAxios";
const app = {
  name: "App",
  setup () {
    const { result, loading, loaded } = useURLAxios("https://dog.ceo/api/breeds/image/random");
    return {
      result,
      loading,
      loaded
    }
  }
}
export default app;
</script>